package unittest.docsync;


import java.util.List;
import java.util.ListIterator;

import docsync.FolderInterface;
import docsync.FolderSync;
import docsync.TestStubFolder;
import docsync.FolderSync.Action;

public class UnitTestFolderSync {

	/**
	 * @param args
	 * @throws Exception 
	 */
	public static void main(String[] args) throws Exception {
		String pathA ="C:\\Documents and Settings\\michael\\My Documents\\school\\fall 2010\\cmpe207\\project\\testA";
		String pathB ="C:\\Documents and Settings\\michael\\My Documents\\school\\fall 2010\\cmpe207\\project\\testB"; 
		FolderInterface folderA = new TestStubFolder(pathA);
		FolderInterface folderB = new TestStubFolder(pathB);
		FolderSync sync = new FolderSync(folderA, folderB);
		List<FolderSync.Action> todos= sync.sync();
		ListIterator<Action> iter = todos.listIterator();
		while( iter.hasNext() ){
			Action action = iter.next();
			System.out.println( action.toString() );
			//action.perform();
		}
	}

}
